package cn.gztang.mapper;

import cn.gztang.entity.po.GasTankInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GasTankInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GasTankInfo record);

    int insertSelective(GasTankInfo record);

    GasTankInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GasTankInfo record);

    int updateByPrimaryKey(GasTankInfo record);

    Integer selectCountByBarcode(@Param("begin") long begin, @Param("end") long end);

    List<GasTankInfo> selectByCodeRange(@Param("begin") long begin, @Param("end") long end);

    Integer batchAdd(List<GasTankInfo> gasTankInfos);

    GasTankInfo selectByBarcode(long barcode);

    List<GasTankInfo> selectAllByPageQuery(@Param("pageNumKey") int pageNum,
                                           @Param("pageSizeKey") int pageSize);

    List<Long> selectExitsIdsByRange(@Param("begin") long begin, @Param("end") long end);

}